// com.example.aftersales.service.UserService.java
package com.example.aftersales.service;

import com.example.aftersales.entity.User;
import com.example.aftersales.vo.ServiceResult;

public interface UserService {
    ServiceResult<Boolean> register(String username, String password, String role);
    ServiceResult<User> login(String username, String password);
    ServiceResult<Boolean> updateProfile(String username, String newPassword);
    User getByUsername(String username);
}